package com.ofsize.keepmoving;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import com.facebook.drawee.view.SimpleDraweeView;

/**
 * Created by liudengyong on 15/6/4.
 */

public class ShowImgActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_img);

        String url = this.getIntent().getStringExtra("url");
        SimpleDraweeView img = (SimpleDraweeView)(this.findViewById(R.id.show_img));
        img.setImageURI(Uri.parse(url));
        img.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ShowImgActivity.this.finish();
                overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
            }
        });
    }
}
